package com.zxp00.JavaBasics;
/*封装的概念*/

public class Z07_arrayDemo1_Movie {
    //成员变量
    private String name;
    private Double score;
    private String actor;

    //无参数构造器
    public Z07_arrayDemo1_Movie() {
    }

    //带参数构造器
    public Z07_arrayDemo1_Movie(String name, Double score, String actor) {
        this.name = name;
        this.score = score;
        this.actor = actor;
    }

    //getter和setter方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }
}
